<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>background-repeat基本使用</title>
    <style>
        div{
            width: 300px;
            height: 300px;
            border: 5px dashed red;
            padding: 20px;
            margin: 100px auto;
            background-image: url(../img/pig.webp);
            /* 背景图重复平铺，默认值 */
            /* background-repeat: repeat; */
            /* 设置背景图为不重复渲染 */
            /* background-repeat: no-repeat; */
            /* 设置背景图为横向重复平铺 */
            /* background-repeat: repeat-x; */
            /* 设置背景图为纵向重复平铺 */
            background-repeat: repeat-y;            
        }
    </style>
</head>
<body>
    <div>    </div>
</body>
</html>